package cn.edu.cug.cs.gtl.docsrv.dict.response;

import java.util.List;
import java.util.Map;

public class TableResponse {
    List<Map> tuples;//记录集合
    List<Map> tableInfo;//数据表结构信息；
    Integer pageNumber;//页码，从1开始;
    Integer pageSize;//页面大小,也即每页最大存放记录条数
    Integer totalCount;//数据表中的数据记录总数

    public List<Map> getTuples() {
        return tuples;
    }

    public void setTuples(List<Map> tuples) {
        this.tuples = tuples;
    }

    public List<Map> getTableInfo() {
        return tableInfo;
    }

    public void setTableInfo(List<Map> tableInfo) {
        this.tableInfo = tableInfo;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public TableResponse(List<Map> tuples, List<Map> tableInfo, int pageNumber, int pageSize, int totalCount) {
        this.tuples = tuples;
        this.tableInfo = tableInfo;
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
    }
}
